﻿namespace ctolua.Models
{
    public static class MGame
    {
        /// <summary>
        /// 获取初始化游戏画质
        /// </summary>
        /// <returns>value</returns>
        public static string get_graphics_quality => game_api.get_graphics_quality();

        /// <summary>
        /// 获取初始化窗口类别
        /// </summary>
        /// <returns>value</returns>
        public static string get_window_mode => game_api.get_window_mode();

        /// <summary>
        /// 获取初始化横向分辨率 x
        /// </summary>
        /// <returns>value</returns>
        public static int? get_game_x_resolution => game_api.get_game_x_resolution();

        /// <summary>
        /// 获取初始化横向分辨率 y
        /// </summary>
        /// <returns>value</returns>
        public static int? get_game_y_resolution => game_api.get_game_y_resolution();

        /// <summary>
        /// 获取屏幕横向分辨率 x
        /// </summary>
        /// <returns>value</returns>
        public static int? get_screen_x_resolution => game_api.get_screen_x_resolution();

        /// <summary>
        /// 获取屏幕横向分辨率 y
        /// </summary>
        /// <returns>value</returns>
        public static int? get_screen_y_resolution => game_api.get_screen_y_resolution();

        /// <summary>
        /// 获取当前游戏模式
        /// </summary>
        /// <returns>游戏模式</returns>
        public static GameMode get_game_mode => game_api.get_game_mode();

        /// <summary>
        /// 获取初始化背景音乐开关状态
        /// </summary>
        /// <returns>value</returns>
        public static bool? get_bgm_state() => game_api.get_bgm_state();

        /// <summary>
        /// 获取初始化战斗音效开关状态
        /// </summary>
        /// <returns>value</returns>
        public static bool? get_battle_bgm_state() => game_api.get_battle_bgm_state();

        /// <summary>
        /// 获取初始化背景音乐音量
        /// </summary>
        /// <returns>value</returns>
        public static int? get_bgm_volume() => game_api.get_bgm_volume();

        /// <summary>
        /// 获取初始化战斗音效音量
        /// </summary>
        /// <returns>value</returns>
        public static int? get_battle_volume() => game_api.get_battle_volume();

        /// <summary>
        /// 暂停游戏
        /// </summary>
        public static void pause_game() => game_api.pause_game();
        /// <summary>
        /// 开启软暂停
        /// </summary>
        public static void api_soft_pause_game() => game_api.api_soft_pause_game();

        /// <summary>
        /// 关闭软暂停
        /// </summary>
        public static void api_soft_resume_game() => game_api.api_soft_resume_game();
        /// <summary>
        /// 当前游戏运行时间
        /// </summary>
        /// <returns>时间</returns>
        public static double get_cur_game_time => game_api.get_cur_game_time().@float();
        /// <summary>
        /// 为玩家开关全局视野
        /// </summary>
        /// <param name="enable ">  开关   </param>
        public static void enable_fow_for_player(bool? enable) => game_api.enable_fow_for_player(enable);
        /// <summary>
        /// 获取本局游戏环境
        /// </summary>
        /// <returns>游戏环境</returns>
        public static int? api_get_start_mode() => game_api.api_get_start_mode();
    }
}
